package com.haixiaoke.saas.repository.mapper;


import com.haixiaoke.saas.repository.pojo.HouseInspection;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 验房信息Mapper接口
 * 
 * @author haixiaoke
 * @date 2023-04-18
 */
public interface HouseInspectionMapper {
    /**
     * 查询验房信息
     * 
     * @param inspectionId 验房信息主键
     * @return 验房信息
     */
    HouseInspection selectHouseInspectionByInspectionId(Long inspectionId);

    /**
     * 查询验房信息列表
     * 
     * @param houseInspection 验房信息
     * @return 验房信息集合
     */
    List<HouseInspection> selectHouseInspectionList(HouseInspection houseInspection);

    /**
     * 新增验房信息
     * 
     * @param houseInspection 验房信息
     * @return 结果
     */
    int insertHouseInspection(HouseInspection houseInspection);

    /**
     * 修改验房信息
     * 
     * @param houseInspection 验房信息
     * @return 结果
     */
    int updateHouseInspection(HouseInspection houseInspection);

    /**
     * 删除验房信息
     * 
     * @param inspectionId 验房信息主键
     * @return 结果
     */
    int deleteHouseInspectionByInspectionId(Long inspectionId);

    /**
     * 批量删除验房信息
     * 
     * @param inspectionIds 需要删除的数据主键集合
     * @return 结果
     */
    int deleteHouseInspectionByInspectionIds(Long[] inspectionIds);

    List<HouseInspection> selectHouseInspectionByOrderId(String orderId);

    HouseInspection selectHouseInspectionByOrderIdAndInspectionStatus(@Param("orderId") String orderId,@Param("inspectionStatus") Integer inspectionStatus);

}
